package com.mango.avtiveMQ;

import org.apache.activemq.broker.BrokerService;

/**
 * @Author:  MangoCookieMilk
 * @Date:     2021/2/28 19:20
 * ActiveMQ 的broker 相当于一个小型的容器
 */
public class EmbedBroker {
    public static void main(String[] args) throws Exception {
        //ActiveMQ支持基于VM中通信基于嵌入式的broker
        BrokerService brokerService = new BrokerService();
        brokerService.setUseJmx(true);
        brokerService.addConnector("tcp://localhost:61616");
        brokerService.start();
    }
}
